using System;
using System.Collections;
using Holoville.HOTween;
using Holoville.HOTween.Plugins;
using UnityEngine;

public class AnimateShine : MonoBehaviour
{
	private void OnEnable()
	{
		base.StartCoroutine("CoAnimateShine");
	}

	private void OnDisable()
	{
		base.StopCoroutine("CoAnimateShine");
	}

	private IEnumerator CoAnimateShine()
	{
		float animateSec = 8f;
		while (base.gameObject.activeSelf)
		{
			TweenParms parms = new TweenParms();
			parms.Prop("localRotation", new PlugQuaternion(new Vector3(0f, 0f, 90f), EaseType.Linear, true).Beyond360());
			yield return base.StartCoroutine(HOTween.To(base.transform, animateSec, parms).WaitForCompletion());
		}
		yield break;
	}
}
